﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Link_Add.aspx.cs" Inherits="Web.Admin.Link_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<head id="Head1" runat="server">
    <title>友情链接添加页面</title>
    <link rel="stylesheet" href="../resources/css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../resources/css/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../resources/css/invalid.css" type="text/css" media="screen" />
    <script type="text/javascript" src="../resources/scripts/jquery-1.3.2.min.js"></script>
    <script type="text/javascript" src="../resources/scripts/simpla.jquery.configuration.js"></script>
    <style type="text/css">
        .tab-content
        {
            width: 1000px;
            height: 1000px;
            margin-left: 100px;
        }
    </style>
    <script type="text/javascript">
        function radio(x) {
            var radioone = document.getElementById("radio1");
            var radiotwo = document.getElementById("radio2");
            if (x == 1) {
                if (radioone.checked == true) {
                    radiotwo.checked = false;
                }
            } else {
                if (radiotwo.checked == true) {
                    radioone.checked = false;
                }
            }

        }
        function checkbox(x) {

            var checkboxone = document.getElementById("checkbox1");
            var checkboxtwo = document.getElementById("checkbox2")
            if (x == 1) {
                if (checkboxone.checked == true) {
                    checkboxtwo.checked = false;
                }
            } else {
                if (checkboxtwo.checked == true) {
                    checkboxone.checked = false;
                }
            }
        }
    </script>
</head>
<body>
    <!-- End #tab1 -->
    <div class="tab-content" id="tab2">
        <form runat="server">
        <fieldset>
            <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
            <p>
                <label>
                    存储友情链接名称</label>
                <input class="text-input small-input" type="text" id="nameinput" name="name-input"
                    runat="server" />
                <span class="input-notification success png_bg" runat="server" id="hideone">不可以为空</span>
                <label>
                    鼠标悬停时显示的内容</label>
                <input class="text-input small-input" type="text" id="titleinput" name="title-input"
                    runat="server" />
                <span class="input-notification success png_bg" runat="server" id="hidetwo">不可以为空</span>
                <!-- Classes for input-notification: success, error, information, attention -->
                <br />
                <small>验证是否重名</small>
            </p>
            <p>
                <label>
                    URL地址</label>
                <input class="text-input medium-input datepicker" type="text" id="mediuminput" name="medium-input"
                    runat="server" />
                <span class="input-notification error png_bg" runat="server" id="hidethree">URL地址不正确</span>
            </p>
            <p>
            </p>
            <p>
                <label>
                    打开方式</label>
                <input type="checkbox" name="checkbox1" id="checkbox1" runat="server" onclick='checkbox(1)' />
                新会话窗体
                <input type="checkbox" name="checkbox2" id="checkbox2" runat="server" onclick='checkbox(2)' />
                本会话窗体
            </p>
            <p>
                <label>
                    当前状态</label>
                <input id="radio1" type="radio" runat="server" onclick="radio(1)" value="0" /> 
                显示<br />
                <input id="radio2" type="radio" runat="server" onclick="radio(2)" value="-1" />
                隐藏
            </p>
            <p>
                <label>
                    本友情链接备注</label>
                <textarea class="text-input textarea wysiwyg" id="textarea" name="textfield" cols="79"
                    rows="15" runat="server"></textarea>
            </p>
            <p>
                <input id="submitbutton" class="button" type="button" value="确定" runat="server" onserverclick="AddLink" />
            </p>
        </fieldset>
        <div class="clear">
        </div>
        <!-- End .clear -->
        </form>
    </div>
</body>
</html>
